public class Ticket {
    private String ticketId;
    private Schedule schedule;
    private int row;
    private int seatNumber;
    private String buyer;
    private boolean isRefunded;
    private boolean isChild;
    private double price;

    public Ticket(String ticketId, Schedule schedule, int row, int seatNumber, String buyer, boolean isChild, double price) {
        this.ticketId = ticketId;
        this.schedule = schedule;
        this.row = row;
        this.seatNumber = seatNumber;
        this.buyer = buyer;
        this.isRefunded = false;
        this.isChild = isChild;
        this.price = price;
    }

    public String getTicketId() { return ticketId; }
    public Schedule getSchedule() { return schedule; }
    public int getRow() { return row; }
    public int getSeatNumber() { return seatNumber; }
    public String getBuyer() { return buyer; }
    public boolean isRefunded() { return isRefunded; }
    public void setRefunded(boolean refunded) { isRefunded = refunded; }
    public boolean isChild() { return isChild; }
    public double getPrice() { return price; }
} 